package com.yundasys.lab02springbootstudy.transactional;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * @PACKAGE_NAME: com.yundasys.lab02springbootstudy.transactional
 * @NAME: RabbitServiceImpl
 * @USER: jiangta
 * @DATE: 2021/8/9
 * @TIME: 11:17 上午
 * @PROJECT_NAME: springboot-labs
 */
@Service
public class RabbitServiceImpl implements RabbitService {
    @Override
    public boolean methodA(String name) {
        return methodB(name);
    }

    @Override
    @Transactional(propagation = Propagation.REQUIRED)
    public boolean methodB(String name) {
        return false;
    }
}
